<template>
  <!--关于我们-->
  <div class="aboutus">
    <p class="content" v-html="aboutUs.configVal"></p>
    <ul>
      <li>
        <p>24小时服务电话</p>
        <p><img src="../../../assets/call1.png" alt="" width="30">{{hoursHotline.configVal}}</p>
      </li>
      <li>
        <p>安全服务电话</p>
        <p><img src="../../../assets/call2.png" alt="" width="25">{{servicePhone.configVal}}</p>
      </li>
    </ul>
  </div>
</template>

<script type="text/ecmascript-6">
  import {aboutUs} from '../../../../test/unit/http'
  import {Toast} from 'we-vue'
  export default {
    name: '',
    props: {},
    data() {
      return {
        aboutUs: {},
        hoursHotline:{},
        servicePhone:{}
      };
    },
    methods: {},
    created() {
      aboutUs({}).then(res => {
        console.log(res);
        if (res.code == 100) {
          this.aboutUs = res.object.AboutUs;
          this.hoursHotline = res.object.HoursHotline;
          this.servicePhone = res.object.ServicePhone;
        } else {
          Toast.fail(res.info)
        }
      })
    },
    components: {}
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" rel="stylesheet/less">
  .aboutus {
    padding: 10px;
    text-align: left;
  }

  .title {
    font-size: 20px;
    color: #111;
    margin-bottom: 5px;
  }

  .content {
    font-size: 15px;
    color: #666;
    line-height: 25px;
  }

  ul {
    display: flex;
    padding-top: 15px;
    li {
      flex: 1;
      padding-left: 10px;
      p:first-child {
        color: #111;
        font-size: 15px;
        margin-bottom: 5px;
      }
      p:last-child {
        font-size: 13px;
        color: #666;
        img {
          vertical-align: middle;
          margin-right: 5px;
        }
      }
    }
  }
</style>
